﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ClassifyApp.Model
{
    public class MessagesItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string role { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string content { get; set; }
    }

    public class OpenAiRequestModel
    {
        ////public double frequency_penalty { get; set; } = 1.2;
        ////public double repetition_penalty { get; set; } = 1.2;
        /// <summary>
        /// 
        /// </summary>
        public string request_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string model { get; set; } = "qwen1half-4b-chat";
        /// <summary>
        /// 
        /// </summary>
        public double temperature { get; set; } = 0.1;
        /// <summary>
        /// 
        /// </summary>
        public int max_new_tokens { get; set; } = 512;
        /// <summary>
        /// 
        /// </summary>
        public int top_k { get; set; } = 20;
        /// <summary>
        /// 
        /// </summary>
        public double top_p { get; set; } = 0.7;
        public int seed { get; set; } = 42;
        /// <summary>
        /// Gets or sets a value indicating whether [do sample].设置为false temperature，top_k，top_p这些参数是不能够被设置的
        /// </summary>
        /// <value>
        ///   <c>true</c> if [do sample]; otherwise, <c>false</c>.
        /// </value>
        public bool do_sample { get; set; } = true;
        /// <summary>
        /// 
        /// </summary>
        public List<MessagesItem> messages { get; set; }
    }

}
